Count all occurrences of repeating elements in Python list